<?php

use Illuminate\Database\Seeder;
use \App\Models\OrderGoods;
class OrderGoodsSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $faker = \Faker\Factory::create();
        // And now, let's create a few articles in our database:
        for ($i = 0; $i < 100; $i++) {
            OrderGoods::create([
                'user_id' => 1,
                'order_id' => 7,
                'goods_id' => $faker->numberBetween(3, 6),
                'goods_num' => $faker->numberBetween(1, 2),
                'specs_id' => 0,
                'goods_price' => $faker->randomFloat(2, 0, 10),
                'pay_price' => $faker->randomFloat(2, 0, 10),
                'goods_name' => $faker->unique()->name,
                'goods_img' => 'images/0f95d8f6fc2e547a0c3320bfb0d86756.png',
            ]);
        }
    }
}
